package com.netposa.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(
   prefix = "gps.import"
)
public class GpsConfig {
   private static final Logger log = LoggerFactory.getLogger(GpsConfig.class);
   private Boolean open;

   public Boolean getOpen() {
      return this.open;
   }

   public void setOpen(Boolean open) {
      this.open = open;
   }

   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof GpsConfig)) {
         return false;
      } else {
         GpsConfig other = (GpsConfig)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            Object this$open = this.getOpen();
            Object other$open = other.getOpen();
            if (this$open == null) {
               if (other$open != null) {
                  return false;
               }
            } else if (!this$open.equals(other$open)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(Object other) {
      return other instanceof GpsConfig;
   }

   public int hashCode() {
      
      int result = 1;
      Object $open = this.getOpen();
      result = result * 59 + ($open == null ? 43 : $open.hashCode());
      return result;
   }

   public String toString() {
      return "GpsConfig(open=" + this.getOpen() + ")";
   }
}
